package acWing;

import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

public class _04IndexH {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt(), L = scanner.nextInt();
        Integer[] papers = new Integer[N];
        for (int i = 0;i < N;i++){
            papers[i] = scanner.nextInt();
        }
        scanner.close();

        Arrays.sort(papers,Collections.reverseOrder());
        int res = papers[0];

    }
}
